package com.heima.comment.feign;

import com.heima.comment.dto.ApUser;
import com.heima.common.dto.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("leadnews-user")
public interface UserFeign {

    @PostMapping("/api/v1/user/{id}")
    @ApiOperation(value = "查询作者", notes = "author:mcm")
    public ResponseResult<ApUser> findUserById(@PathVariable("id") Integer id);
}
